package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.dto.EnterpriseTrainingNeedDto
import cn.exrick.xboot.base.service.IEnterpriseTrainingNeedsService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class EnterpriseTrainingNeedController : IEnterpriseUserController.IEnterpriseTrainingNeeds {

    @Autowired
    private lateinit var iEnterpriseTrainingNeedsService: IEnterpriseTrainingNeedsService

    override fun publishOrUpdateEnterpriseTrainingNeed(enterpriseTrainingNeedDto: EnterpriseTrainingNeedDto?): Result<Any?>? {

        return iEnterpriseTrainingNeedsService.publishOrUpdateEnterpriseTrainingNeed(enterpriseTrainingNeedDto)
    }

    override fun getMyPublishEnterpriseTrainingNeedList(pageVo: PageVo): Result<MutableMap<String, Any?>?> {

        return iEnterpriseTrainingNeedsService.getMyPublishEnterpriseTrainingNeedList(pageVo)
    }

    override fun getEnterpriseTrainingNeedListByAreaId(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iEnterpriseTrainingNeedsService.getEnterpriseTrainingNeedListByAreaId(pageVo)
    }

    override fun removePublishEnterpriseTrainingNeed(ids: Array<out String>): Result<Any?>? {

        return iEnterpriseTrainingNeedsService.removePublishEnterpriseTrainingNeed(ids)
    }
}